//
//  UserInfo.swift
//  App
//
//  Created by 汤泽川 on 2019/3/29.
//

import Foundation
import FluentMySQL
import Vapor

struct UserInfo : BaseModel {
    var id: Int?
    var createdAt: Date?
    var updatedAt: Date?
    
    var username : String
    var email : String?
    var gender : String?
    var avatarUrl : String?
    var introduce : String?
    
    init(username : String, email : String) {
        self.username = username
        self.email = email
    }
    init(username : String) {
        self.username = username
    }
}

extension UserInfo {
    // TODO: codingKeys 控制传回给客户端的内容
}
